﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using InventoryPro.DAL;

namespace InventoryPro.BL
{
    public class ProductLogic 
    {
        ProductDAO dao = new ProductDAO();


        public List<Product> GetAllProducts()
        {

            return dao.GetAllProducts();
        }

        public Product GetProductbyID(int ID)
        {
            return dao.GetProductbyID(ID);
        }


        public void CreateProduct(Product product)
        {

            dao.CreateProduct(product);
        }


        public void UpdateProduct(Product product)
        {

            dao.UpdateProduct(product);
        }


        public void DeleteProduct(int ID)
        {
            dao.DeleteProduct(ID);

        }


        public List<Category> GetAllCategories()
        {

            return dao.GetAllCategories();
        }
    }
}
